%{
#include "y.tab.h"
#include "identifierTable.h"

extern identifierTable *idTable;
extern int yylval;

%}

%%

select      return SELECT;

from        return FROM;

on          return ON;

non         return NON;

empty       return EMPTY;

[a-zA-Z]+   {
              yylval = addIdentifier(idTable, yytext);
              printf("%d", yylval);
              return ID;
            }

[:\.]       return *yytext;

%%

int yywrap()
{
  return 1;
}

